package com.bruce.codeFactory.designMode.observer;

/**
 * @author luotuan
 * @Description
 * @create 2019-03-04 22:06
 **/
public class BinaryObserver extends Observer {
    public BinaryObserver(Subject subject){
        super(subject);
    }
    @Override
    void update() {
        System.out.println("binary conversion result is--->"+Integer.toBinaryString(subject.getState()));
    }
}
